<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<style>
    #time{
        font-size: 100px;
        text-align: center;
    }
</style>
<body>
    <h1>跳跳虎</h1>
    <p id="time">5</p>
</body>
<script>
    function count(){
        var time=document.getElementById('time')
        if(time.innerHTML==0){
            window.location.href='https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fww3.sinaimg.cn%2Fmw690%2F0076FpaPly1h8jughfsk2j30u01600wc.jpg&refer=http%3A%2F%2Fwww.sina.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1672151447&t=743ced2c97c7c1b90a1517e0954bb5a6'
        }else{
            time.innerHTML=time.innerHTML-1;
        }
    }
    window.setInterval('count()',1000)
</script>
</html>